

//定义一个用户类（User），包含用户名（username）和密码（password）属性，提供静态方法
//        验证密码是否有效（长度至少为6），并提供getter和setter方法。

package Job.thirtyTwo;

public class User {
    private String username;
    private String password;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public static boolean validatePassword(String password) {
        return password.length() >= 6;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
